/*
 * @Author: 尔尔
 * @Date: 2024-02-01 17:06:43
 * @LastEditors: 尔尔
 * @LastEditTime: 2024-04-07 14:56:31
 * @FilePath: \ERP\src\api\quality\stock\inspect.js
 * @filePurpose:
 */
import request from '@/utils/request'

// 查询采购品入场检验列表
export function listInspect(query) {
  return request({
    url: '/TPurchaseEntryQuality/TPurchaseEntryQuality/list',
    method: 'get',
    params: query
  })
}

// 查询采购品入场检验详细
export function getInspect(id) {
  return request({
    url: '/TPurchaseEntryQuality/TPurchaseEntryQuality/' + id,
    method: 'get'
  })
}

// 新增采购品入场检验
// export function addInspect(data) {
//   return request({
//     url: '/erp/auxiliaryConsumablesType',
//     method: 'post',
//     data: data
//   })
// }

// 修改采购品入场检验
export function updateInspect(data) {
  return request({
    url: '/TPurchaseEntryQuality/TPurchaseEntryQuality',
    method: 'put',
    data
  })
}

// 修改采购品入场检验批量
export function batchApproval(data) {
  return request({
    url: '/TPurchaseEntryQuality/TPurchaseEntryQuality/batchApproval',
    method: 'put',
    data
  })
}

// 删除采购品入场检验
export function delInspect(id) {
  return request({
    url: '/erp/auxiliaryConsumablesType/' + id,
    method: 'delete'
  })
}
